set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -pthread")

include_directories(${PROJECT_SOURCE_DIR}/include)

include_directories(${YAML_CPP_INCLUDE_DIRS})

find_library(YAML_CPP_LIBRARIES yaml-cpp)

find_package(yaml-cpp REQUIRED)

add_executable(sms_server main.cpp yamlHandler.cpp server.cpp dataBase.cpp dataBase_test.cpp log.cpp)

target_link_libraries(sms_server ${YAML_CPP_LIBRARIES})
